 /**
 * 子模块路由
 * djp
 */

var router = function($urlRouterProvider, $stateProvider){

    $stateProvider

    .state('app.communityList', {
        url: "/community/list",
        views: {
            'main@' : {
                template : require('./views/communityList.html'),
                controller : 'communityList',
            }
        },
        resolve:{
        }
    })
    // 事件订单列表
    .state('app.communityOrderList', {
        url: "/communityOrderList",
        views: {
            'main@' : {
                template : require('./views/communityOrderList.html'),
                controller : 'communityOrderList',
            }
        },
        resolve:{
        }
    })
    // 事件订单列表
    .state('app.myCommunityItem', {
        url: "/mycommunity/list",
        views: {
            'main@' : {
                template : require('./views/myCommunityOrder.html'),
                controller : 'myCommunityOrder',
            }
        },
        resolve:{
        }
    })

    // 事件订单列表
    .state('app.itemInfo', {
        url: "/item/info/:item_id/:cardno/:code/:flag",
        views: {
            'main@' : {
                template : require('./views/itemInfo.html'),
                controller : 'itemInfo',
            }
        },
        resolve:{
        }
    })

};

module.exports = router;